import request from '@/utils/request'

// 查询幼儿日常列表
export function listChildEveryday(query) {
  return request({
    url: '/childEveryday/childEveryday/list',
    method: 'get',
    params: query
  })
}

export function childListByDeptId() {
  return request({
    url: '/childEveryday/childEveryday/childListByDeptId',
    method: 'get'
  })
}

// 查询幼儿日常详细
export function getChildEveryday(childEverydayId) {
  return request({
    url: '/childEveryday/childEveryday/' + childEverydayId,
    method: 'get'
  })
}

// 新增幼儿日常
export function addChildEveryday(data) {
  return request({
    url: '/childEveryday/childEveryday',
    method: 'post',
    data: data
  })
}

// 修改幼儿日常
export function updateChildEveryday(data) {
  return request({
    url: '/childEveryday/childEveryday',
    method: 'put',
    data: data
  })
}

// 删除幼儿日常
export function delChildEveryday(childEverydayId) {
  return request({
    url: '/childEveryday/childEveryday/' + childEverydayId,
    method: 'delete'
  })
}
